package cn.geoportal.benoserver.service;

import cn.geoportal.benoserver.entity.IotType;
import com.baomidou.mybatisplus.core.conditions.Wrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;

/**
 *
 */
public interface IotTypeService extends IService<IotType> {

    /**
     * 1. 分页列表展示
     */
    IPage<IotType> selectPage(Page page, Wrapper<IotType> wrapper);

    /**
     * 2. 添加IotType
     * @param iotType
     * @return
     */
    int addIotType(IotType iotType);

    /**
     * 3. 添加IotType
     * @param name
     * @param description
     * @return
     */
    int addIotType(String name, String description);

    /**
     * 4. 更新IotType
     * @param iotType
     * @return
     */
    int updateIotTypeById(IotType iotType);

    /**
     * 5. 根据id获取IotType
     * @param id
     * @return
     */
    IotType findIotTypeById(Integer id);

    /**
     * 6. 删除IotType
     * @param id
     * @return
     */
    int deleteIotTypeById(Integer id);
}
